<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::BinaryTreeThresholdBasedBranchEstimator类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_binary_tree_threshold_based_branch_estimator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1_binary_tree_threshold_based_branch_estimator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::BinaryTreeThresholdBasedBranchEstimator类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Branch estimator for binary trees where the branch is computed only from the threshold.  
 <a href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="branch__estimator_8h_source.html">branch_estimator.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::BinaryTreeThresholdBasedBranchEstimator 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_binary_tree_threshold_based_branch_estimator.png" usemap="#pcl::BinaryTreeThresholdBasedBranchEstimator_map" alt=""/>
  <map id="pcl::BinaryTreeThresholdBasedBranchEstimator_map" name="pcl::BinaryTreeThresholdBasedBranchEstimator_map">
<area href="classpcl_1_1_branch_estimator.html" title="Interface for branch estimators." alt="pcl::BranchEstimator" shape="rect" coords="0,0,281,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:accd8e2ed4c8594c82aef994ec31e0124"><td class="memItemLeft" align="right" valign="top"><a id="accd8e2ed4c8594c82aef994ec31e0124"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html#accd8e2ed4c8594c82aef994ec31e0124">BinaryTreeThresholdBasedBranchEstimator</a> ()</td></tr>
<tr class="memdesc:accd8e2ed4c8594c82aef994ec31e0124"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:accd8e2ed4c8594c82aef994ec31e0124"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c3ee0ab33a0134fa623e96054078707"><td class="memItemLeft" align="right" valign="top"><a id="a1c3ee0ab33a0134fa623e96054078707"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html#a1c3ee0ab33a0134fa623e96054078707">~BinaryTreeThresholdBasedBranchEstimator</a> ()</td></tr>
<tr class="memdesc:a1c3ee0ab33a0134fa623e96054078707"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a1c3ee0ab33a0134fa623e96054078707"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6d22826f1954e0e585ce2eadb69a867"><td class="memItemLeft" align="right" valign="top"><a id="af6d22826f1954e0e585ce2eadb69a867"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html#af6d22826f1954e0e585ce2eadb69a867">getNumOfBranches</a> () const</td></tr>
<tr class="memdesc:af6d22826f1954e0e585ce2eadb69a867"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of branches the corresponding tree has. <br /></td></tr>
<tr class="separator:af6d22826f1954e0e585ce2eadb69a867"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74a36b88ff7150dcdd4de0cdb04d18fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html#a74a36b88ff7150dcdd4de0cdb04d18fe">computeBranchIndex</a> (const float result, const unsigned char flag, const float threshold, unsigned char &amp;branch_index) const</td></tr>
<tr class="memdesc:a74a36b88ff7150dcdd4de0cdb04d18fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the branch index for the specified result.  <a href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html#a74a36b88ff7150dcdd4de0cdb04d18fe">更多...</a><br /></td></tr>
<tr class="separator:a74a36b88ff7150dcdd4de0cdb04d18fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_branch_estimator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_branch_estimator')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_branch_estimator.html">pcl::BranchEstimator</a></td></tr>
<tr class="memitem:ad325b37e2a49b02d5656e055ec0e4d90 inherit pub_methods_classpcl_1_1_branch_estimator"><td class="memItemLeft" align="right" valign="top"><a id="ad325b37e2a49b02d5656e055ec0e4d90"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_branch_estimator.html#ad325b37e2a49b02d5656e055ec0e4d90">~BranchEstimator</a> ()</td></tr>
<tr class="memdesc:ad325b37e2a49b02d5656e055ec0e4d90 inherit pub_methods_classpcl_1_1_branch_estimator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ad325b37e2a49b02d5656e055ec0e4d90 inherit pub_methods_classpcl_1_1_branch_estimator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Branch estimator for binary trees where the branch is computed only from the threshold. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a74a36b88ff7150dcdd4de0cdb04d18fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74a36b88ff7150dcdd4de0cdb04d18fe">&#9670;&nbsp;</a></span>computeBranchIndex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::BinaryTreeThresholdBasedBranchEstimator::computeBranchIndex </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char&#160;</td>
          <td class="paramname"><em>flag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>threshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char &amp;&#160;</td>
          <td class="paramname"><em>branch_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the branch index for the specified result. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">result</td><td>The result the branch index will be computed for. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flag</td><td>The flag corresponding to the specified result. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold</td><td>The threshold used to compute the branch index. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">branch_index</td><td>The destination for the computed branch index. </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classpcl_1_1_branch_estimator.html#a595a4e2ddc742910336912ff66c6feba">pcl::BranchEstimator</a>.</p>
<div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;      {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        (void)flag;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        branch_index = (result &gt; threshold) ? 1 : 0;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="branch__estimator_8h_source.html">branch_estimator.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_binary_tree_threshold_based_branch_estimator.html">BinaryTreeThresholdBasedBranchEstimator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
